package com.vastcom.sigma.admin.dao;


import com.vastcom.sigma.admin.model.Proplan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ProplanDao extends JpaRepository<Proplan,String> {

    /*@Query("select c from Cargocate c where c.pid=:cargocateid order by c.basecode")
    List<Cargocate> getCargocatesByCargocateid(@Param("cargocateid") String cargocateid);*/

    @Query("select p from Proplan p order by p.jhrq desc ")
    List<Proplan> getProplansOrOrderByJhrqAsc();
}
